﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class UC_WaterMarkedTextBox : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    public string Text
    {
      get {return  txtBox.Text; }
      set { txtBox.Text = value; }
    }
    public string Caption
    {
      get { return wtrMrk.WatermarkText; }
      set { wtrMrk.WatermarkText = value; }
    }

    //public override bool  Visible
    //{
    //  get { return txtBox.Visible || base.Visible;}
    //  set { txtBox.Visible = base.Visible = value; }
    //}
    public bool Enabled
    {
      get { return txtBox.Enabled; }
        set { txtBox.Enabled = value; }
    }

    public bool ISRequired
    {
        get { return reqTxt.Enabled; }
        set
        {
            reqTxt.Enabled = value;
            reqTxt.Visible = value;
            lblTxtReq.Visible = value;
        }
    }

}